package com.ljc.dto;

import lombok.Data;
import org.junit.experimental.theories.DataPoint;

/**
 * @author clj
 * @date 2022/11/29
 * @desc Definition for a binary tree node.
 */
@Data
public class TreeNode {
    public int val;
    public TreeNode left;
    public TreeNode right;

    public TreeNode() {
    }

    public TreeNode(int val) {
        this.val = val;
    }

    public TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}